package cn.lls.excel;

import cn.lls.excel.converter.DateConverter;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 划水艺术家
 * @since 2022-11-15
 */
@Data
@ContentRowHeight(20)
public class WageExcel implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 工资Id，主键
     */
    @ExcelProperty(value = "id")
    private Long wageId;


    /**
     * 员工姓名
     */
    @ExcelProperty(value = "姓名")
    @ColumnWidth(10)
    private String employeeName;

    /**
     * 公司的Id，外键
     */
    @ExcelProperty(value = "公司")
    @ColumnWidth(20)
    private String companyName;

    /**
     * 部门名
     */
    @ExcelProperty(value = "部门")
    @ColumnWidth(15)
    private String departmentName;


    /**
     * 职位基本工资
     */
    @ExcelProperty(value = "基本工资")
    @ColumnWidth(12)
    private Double baseWage;

    /**
     * 津贴
     */
    @ExcelProperty(value = "补助")
    @ColumnWidth(12)
    private Double allowance;

    /**
     * 罚款
     */
    @ExcelProperty(value = "罚款")
    @ColumnWidth(12)
    private Double penalty;

    /**
     * 总工资
     */
    @ExcelProperty(value = "合计")
    @ColumnWidth(12)
    private Double all;

    /**
     * 工资开始日期
     */
    @ExcelProperty(value = "起始日期", converter = DateConverter.class)
    @ColumnWidth(18)
    private Date startTime;

    /**
     * 工资结束日期
     */
    @ExcelProperty(value = "结束日期", converter = DateConverter.class)
    @ColumnWidth(18)
    private Date endTime;

    /**
     * 津贴补助说明
     */
    @ExcelProperty(value = "补助说明")
    @ColumnWidth(20)
    private String allowanceReason;


    /**
     * 罚款说明
     */
    @ExcelProperty(value = "罚款说明")
    @ColumnWidth(20)
    private String penaltyReason;



    /**
     * 员工电话
     */
    @ExcelProperty(value = "电话")
    @ColumnWidth(18)
    private String employeeTel;

    /**
     * 工资录入人姓名
     */
    @ExcelProperty(value = "录入人")
    @ColumnWidth(10)
    private String inputEmployeeName;

    /**
     * 工资录入时间
     */
    @ExcelProperty(value = "录入时间", converter = DateConverter.class)
    @ColumnWidth(18)
    private Date createTime;

}
